﻿using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Nevron.Diagram;
using Nevron.Diagram.Extensions;
using Nevron.Diagram.WinForm.Commands;
using Nevron.GraphicsCore;

namespace ActiveFramework.DiagramWinFormExt
{
    public partial class DiagramBuilder : Form
    {
        public MemoryStream DocumentStream { get; set; }
        public bool ActivatedDocument { get; set; }
        public string MetaControlCd { get; set; }
        public Guid Id { get; set; }

        public DiagramBuilder()
        {
            InitializeComponent();
        }

        private void DiagramBuilder_Load(object sender, EventArgs e)
        {
            NDiagramCommandBarsManager manager = this.nDiagramCommandBarsManager1;
            NDiagramCommander commander = manager.Commander;

            // create the predefined Basic shapes with size 20, 20 in millimeters
            nLibraryBrowser1.NewBasicShapesLibraryGroup(NGraphicsUnit.Millimeter, new NSizeF(20, 20));

            // create the predefined flowcharting shapes with size 20, 20 in millimeters
            nLibraryBrowser1.NewFlowchartingShapesLibraryGroup(NGraphicsUnit.Millimeter, new NSizeF(20, 20));

            // create the predefined connector shapes with size 20, 20 in millimeters
            nLibraryBrowser1.NewConnectorShapesLibraryGroup(NGraphicsUnit.Millimeter, new NSizeF(20, 20));


        }
    }
}
